@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8f9fa;
  color: #2c3e50;
}

.app-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 数字动画效果 */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-number {
  animation: countUp 0.5s ease-out forwards;
}

/* 卡片悬浮效果 */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
}

/* 按钮点击波纹效果 */
.ripple-button {
  position: relative;
  overflow: hidden;
}

.ripple-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.ripple-button:active::after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* 修复 Dialog 中的日期选择器样式 */
.MuiDialog-paper {
  overflow-y: visible !important;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #00897b;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: #00695c;
}

/* 表格样式优化 */
.MuiTableRow-root {
  transition: background-color 0.2s ease;
}

.MuiTableRow-root:hover {
  background-color: rgba(0, 137, 123, 0.04) !important;
}

/* 输入框聚焦效果 */
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #00897b !important;
  box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.2);
}

/* 加载动画 */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-size: 1000px 100%;
}

/* 工具提示样式 */
.MuiTooltip-tooltip {
  background-color: rgba(44, 62, 80, 0.95) !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  padding: 8px 12px !important;
}

/* 图表容器样式 */
.chart-container {
  border-radius: 16px;
  padding: 20px;
  background: white;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
  transition: all 0.3s ease;
}

.chart-container:hover {
  box-shadow: 0 12px 32px rgba(149, 157, 165, 0.2);
}